import java.util.ArrayList;

public class Mix extends Action {
	
	public Mix(ArrayList<Predicate> predicates, int duration) {
		super("Mix", duration);
	
		for (Predicate p : predicates) {
			addPreconditions(p);
			addToDeleteList(p);
		}
		
		addToAddList(new Mixed(predicates));
		
		addToResources(Resource.BOWL);
		addToResources(Resource.HANDS);
	}
	
	public Mix() {
		super("Mix", 0);
		
		addToAddList(new Mixed());
		
		addToResources(Resource.BOWL);
		addToResources(Resource.HANDS);
	}
}
